package com.heima.model.aritlce.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 文章基础信息表(ApArticle)表实体类
 *
 * @author dwxw
 * @since 2023-03-12 15:46:03
 */
@Data
@SuppressWarnings("serial")
@TableName("ap_article")
public class ApArticle  {
    //主键
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;
    //自媒体端文章ID
    private Long newsId;
    //文章标题
    private String title;
    //文章封面图片
    private String images;
    //文章作者ID
    private Long authorId;
    //作者名称
    private String authorName;
    //文章频道ID
    private Long channelId;
    //频道名称
    private String channelName;
    //文章布局类型;0 : 无图 1 :单图 3:多图
    private Integer layout;
    //文章标签
    private String labels;
    //文章发布时间
    private Date publishTime;
    //点赞数量
    private Integer likes;
    //评论书数量
    private Integer comment;
    //阅读数量
    private Integer views;
    //收藏数量
    private Integer collection;
    //文章静态详情页面地址
    private String staticUrl;
    //创建时间
    private Date createdTime;
    //更新时间
    private Date updatedTime;
    //是否上架
    private Integer enable;
}

